#region Summary

// 
// Owner : JackieHan 
// 
// Solution : UpdateSystem
// 
// Project :Skomart.Update.Test
// 
// File : TestFileHash.cs
// 
// CopyRight : Copyright © 2010-2011 Skomart Corporation, All Rights Reserved 
// 
// Summary : 测试文件Hash值
// 
// History : 
//			2010-12-29 15:02:05    Create 
// 

#endregion

#region Using

using System;
using System.Collections.Generic;
using System.IO;
using NUnit.Framework;

#endregion

namespace Skomart.Update.Test
{
    /// <summary> 
    /// 测试文件Hash值
    /// </summary>
    [TestFixture]
    public class TestFileHash
    {
        [SetUp]
        public void SetUp()
        {

        }

        [Test]
        public void Test()
        {
            var path = @"F:\Aider.BusinessRules.dll";
            var fileInfo = new FileInfo(path);
            var hashvalue = fileInfo.GetHashCode();
            Console.WriteLine(hashvalue);

            path = @"F:\WINRAR 3.70.EXE";
            fileInfo = new FileInfo(path);
            hashvalue = fileInfo.GetHashCode();
            Console.WriteLine(hashvalue);

            path = @"F:\aaa.txt";
            fileInfo = new FileInfo(path);
            hashvalue = fileInfo.GetHashCode();
            Console.WriteLine(hashvalue);
        }

        [TearDown]
        public void TearDown()
        {
        }
    }
}